import request from '@/utils/request'

// 查询财务收款单列表
export function listReciveOrder(query) {
  return request({
    url: '/finance/reciveOrder/list',
    method: 'get',
    params: query
  })
}

// 查询财务收款单列表
export function listPayType() {
  return request({
    url: '/finance/reciveOrder/payType/listAll',
    method: 'get',
  })
}

// 查询财务收款单详细
export function getReciveOrder(id) {
  return request({
    url: '/finance/reciveOrder/' + id,
    method: 'get'
  })
}

// 新增财务收款单
export function addReciveOrder(data) {
  return request({
    url: '/finance/reciveOrder',
    method: 'post',
    data: data
  })
}

// 修改财务收款单
export function updateReciveOrder(data) {
  return request({
    url: '/finance/reciveOrder',
    method: 'put',
    data: data
  })
}

// 删除财务收款单
export function delReciveOrder(id) {
  return request({
    url: '/finance/reciveOrder/' + id,
    method: 'delete'
  })
}
